package com.jumi.microservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jumi.microservice.enums.GradeEnum;
import com.jumi.microservice.enums.Level;
import com.jumi.microservice.enums.LevelChangeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
* <p>
    * 等级变更表
    * </p>
*
* @author 要挑客户管理团队
* @since 2020-07-14
*/
@ApiModel(value="等级变更表", description="等级变更表")
public class JmUserLevelChangeLog {


    public JmUserLevelChangeLog(Integer uid, Level oLevel, Level nLevel, Integer inviterId, GradeEnum grade, LevelChangeEnum type, Long orderId, String description, Long adminId, String adminName, Integer isDel, LocalDateTime updateTime, LocalDateTime createTime) {
        this.uid = uid;
        this.oLevel = oLevel;
        this.nLevel = nLevel;
        this.inviterId = inviterId;
        this.grade = grade;
        this.type = type;
        this.orderId = orderId;
        this.description = description;
        this.adminId = adminId;
        this.adminName = adminName;
        this.isDel = isDel;
        this.updateTime = updateTime;
        this.createTime = createTime;
    }

    public JmUserLevelChangeLog() {
    }

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

            @ApiModelProperty(value = "用户id")
    private Integer uid;

            @ApiModelProperty(value = "更改前等级")
    private Level oLevel;

            @ApiModelProperty(value = "更改后等级")
    private Level nLevel;

            @ApiModelProperty(value = "上级id")
    private Integer inviterId;

            @ApiModelProperty(value = "升/降级 ： 1.升级 2.降级")
    private GradeEnum grade;

            @ApiModelProperty(value = "变更类型：1.正常升级 2.业绩未达标降级 3.后台更改等级")
    private LevelChangeEnum type;

            @ApiModelProperty(value = "订单编号")
    private Long orderId;

            @ApiModelProperty(value = "等级变更描述")
    private String description;

            @ApiModelProperty(value = "管理员id")
    private Long adminId;

    private String adminName;

            @ApiModelProperty(value = "是否删除：1=是，0=否")
    private Integer isDel;

            @ApiModelProperty(value = "更新时间")

    private LocalDateTime updateTime;

            @ApiModelProperty(value = "创建时间")

    private LocalDateTime createTime;

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Level getoLevel() {
        return oLevel;
    }

    public void setoLevel(Level oLevel) {
        this.oLevel = oLevel;
    }

    public Level getnLevel() {
        return nLevel;
    }

    public void setnLevel(Level nLevel) {
        this.nLevel = nLevel;
    }

    public Integer getInviterId() {
        return inviterId;
    }

    public void setInviterId(Integer inviterId) {
        this.inviterId = inviterId;
    }

    public GradeEnum getGrade() {
        return grade;
    }

    public void setGrade(GradeEnum grade) {
        this.grade = grade;
    }

    public LevelChangeEnum getType() {
        return type;
    }

    public void setType(LevelChangeEnum type) {
        this.type = type;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getAdminId() {
        return adminId;
    }

    public void setAdminId(Long adminId) {
        this.adminId = adminId;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
}
